#include<stdbool.h>
#include "userStructure.h"
extern int user_account;
extern User* user_head;

User* getLastUser();

User* getUserByAccount(int account);

bool hasAccount(int account);

void createUserList();

void initUser(int account,int bookNumber,int super,int bookId[5],char name[10],char password[15]);

void addUser(char name[10],char password[15]);

void deleteUser(User* user);

void setSuperUser(User* user);

void unsetSuperUser(User* user);

bool correctPassword(int account,char password[15]);

bool isSuperUser(User* user);

bool hasBorrowBook(User* user);

void showUserList();

void readUserFile();

void writeUserFile();

void freeUser();
